import service from '@/utils/request'

// @Tags MasterBOMList
// @Summary 创建MasterBOM-建立BOM
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMList true "创建MasterBOM-建立BOM"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /masterBOMList/createMasterBOMList [post]
export const createMasterBOMList = (data) => {
  return service({
    url: '/masterBOMList/createMasterBOMList',
    method: 'post',
    data
  })
}

// @Tags MasterBOMList
// @Summary 删除MasterBOM-建立BOM
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMList true "删除MasterBOM-建立BOM"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBOMList/deleteMasterBOMList [delete]
export const deleteMasterBOMList = (params) => {
  return service({
    url: '/masterBOMList/deleteMasterBOMList',
    method: 'delete',
    params
  })
}

// @Tags MasterBOMList
// @Summary 批量删除MasterBOM-建立BOM
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除MasterBOM-建立BOM"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBOMList/deleteMasterBOMList [delete]
export const deleteMasterBOMListByIds = (params) => {
  return service({
    url: '/masterBOMList/deleteMasterBOMListByIds',
    method: 'delete',
    params
  })
}

// @Tags MasterBOMList
// @Summary 更新MasterBOM-建立BOM
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMList true "更新MasterBOM-建立BOM"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /masterBOMList/updateMasterBOMList [put]
export const updateMasterBOMList = (data) => {
  return service({
    url: '/masterBOMList/updateMasterBOMList',
    method: 'put',
    data
  })
}

// @Tags MasterBOMList
// @Summary 用id查询MasterBOM-建立BOM
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.MasterBOMList true "用id查询MasterBOM-建立BOM"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /masterBOMList/findMasterBOMList [get]
export const findMasterBOMList = (params) => {
  return service({
    url: '/masterBOMList/findMasterBOMList',
    method: 'get',
    params
  })
}

// @Tags MasterBOMList
// @Summary 分页获取MasterBOM-建立BOM列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取MasterBOM-建立BOM列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /masterBOMList/getMasterBOMListList [get]
export const getMasterBOMListList = (params) => {
  return service({
    url: '/masterBOMList/getMasterBOMListList',
    method: 'get',
    params
  })
}
